<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="../../../static/lib/plugins/layer/layer.css">
    <link rel="stylesheet" href="../../../common/css/common.css">
    <script type="text/javascript" src="../../../static/lib/plugins/jQuery/jquery-2.2.3.min.js"></script>
    <script type="text/javascript" src="../../../static/lib/plugins/layer/layer.min.js"></script>
    <script type="text/javascript" src="../../../common/js/common.js"></script>
</head>
<body>
    <button id="error">error</button>
    <button id="success">success</button>
    <button id="confirm">confirm</button>
    <button id="toconfirm">toconfirm</button>
    <button id="layermsg">layermsg</button>
    <script type="text/javascript">
        $(function() {
            $("#error").click(function() {
                layerAlert.errorMessage("出错啦！")
            });
            $("#success").click(function() {
                layerAlert.successMessage("成功！","")
            });
            $("#confirm").click(function() {
                layerAlert.confirmMessage("确定提交？","")
            });
            $("#toconfirm").click(function() {
                layerAlert.toconfirm("ok")
            });
            $("#layermsg").click(function () {
                layer.load(2);
            })
        });
    </script>
</body>
</html>